package generic;

import utils.Log;

import java.util.ArrayList;

/**
 * 15.6 构建复杂模型
 * @param <A>
 * @param <B>
 * @param <C>
 * @param <D>
 */
public class TupleList<A, B, C, D> extends ArrayList<FourTuple<A, B, C, D>> {

    public static void main(String[] args) {
        TupleList<Vehicle, Amphibian, String, Integer> tl = new TupleList<>();
        tl.add(TupleTest.h());
        tl.add(TupleTest.h());

        for (FourTuple<Vehicle, Amphibian, String, Integer> f : tl) {
            Log.vn(f);
        }
    }
}
